package com.gable.exhibition.service;

import com.gable.common.util.ReturnResultUtil;
import com.gable.exhibition.model.User;
import com.gable.exhibition.view.DeviceView;
import com.gable.exhibition.view.ImportExcelDeviceModel;

import java.util.List;
import java.util.Map;

/**
 * Created by Lesson on 2018/2/23.
 */
public interface DeviceService {

    /**
     * 获取设备列表
     * @param deviceView
     * @Create user jacky
     * @Create date 2018/2/23
     * @return
     */
    ReturnResultUtil queryDeviceList(DeviceView deviceView);

    /**
     * 添加或修改设备
     * @param deviceView
     * @Create user jacky
     * @Create date 2018/2/23
     * @return
     */
    ReturnResultUtil addOrUpdateDevice(DeviceView deviceView);

    /**
     * 查询设备详情
     * @param deviceId
     * @Create user jacky
     * @Create date 2018/2/23
     * @return
     */
    ReturnResultUtil queryDeviceInfo(Long deviceId);

    /**
     * 保存Excel导入的设备信息
     * @param list
     * @param user
     * @Create user jacky
     * @Create date 2018/2/23
     * @return
     */
    ReturnResultUtil saveDeviceByExcel(List<ImportExcelDeviceModel> list , User user);

    /**
     * 根据关键字搜索设备信息
     * @param map
     * @Create user jacky
     * @Create date 2018/2/25
     * @return
     */
    ReturnResultUtil queryDeviceByKeyword(Map map);
}
